package com.zjy;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.context.annotation.ComponentScan;

/**
 * 启动程序
 *
 * @author Lion Li
 */
@Slf4j
@ComponentScan(basePackages = {"com.zjy.*"})
@SpringBootApplication
public class BusinessApplication {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(BusinessApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        log.info("项目启动成功");
    }

}
